# Contributor: psykose <alice@ayaya.dev>
# Maintainer: psykose <alice@ayaya.dev>
pkgname=py3-setuptools-scm-git-archive
pkgver=1.4
pkgrel=0
pkgdesc="setuptools_scm plugin for git archives"
url="https://github.com/Changaco/setuptools_scm_git_archive/"
arch="noarch"
license="MIT"
depends="python3 py3-setuptools_scm"
options="!check" # no tests
source="https://pypi.python.org/packages/source/s/setuptools_scm_git_archive/setuptools_scm_git_archive-$pkgver.tar.gz"
builddir="$srcdir/setuptools_scm_git_archive-$pkgver"

export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
dee1a088cf7cc8c829bd6b197ab751135b65fdfbab40460cec5d360b50f84ccd64c28271312a8f387ac91111d688eebcf3626edeb3afdc7a8c7604a10647df93  setuptools_scm_git_archive-1.4.tar.gz
"
